package org.dromara.system.domain.bo;

import org.dromara.system.domain.AppMaterial;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 原料业务对象 app_material
 *
 * @author Lion Li
 * @date 2025-09-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = AppMaterial.class, reverseConvertGenerate = false)
public class AppMaterialBo extends BaseEntity {

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 原料名称
     */
    private String materialName;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
